package com.atomos.strategy.action.display
{
	import com.atomos.strategy.action.AbstractAction;
	import com.atomos.particle.Particle;
	import com.atomos.particle.DisplayObjectParticle;

	public class DisplayObjectDeadAction extends AbstractAction
	{
		override public function process( particle : Particle ) : void
		{
			if( particle.life >= particle.maxLife )
			{
				var p : DisplayObjectParticle = particle as DisplayObjectParticle;
				
				p.displayObject.parent.removeChild( p.displayObject );
			}
		}
	}
}